home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / www_talk.930 / 000968_weber@eitech.com _Tue Apr 27 19:44:19 1993.msg < prev    next >
Internet Message Format  |  1994-01-24  |  3KB

  1. Return-Path: <weber@eitech.com>
  2. Received: from dxmint.cern.ch by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  3.     id AA20444; Tue, 27 Apr 93 19:44:19 MET DST
  4. Received: from lks.lks.csi.com by dxmint.cern.ch (5.65/DEC-Ultrix/4.3)
  5.     id AA17069; Tue, 27 Apr 1993 20:04:12 +0200
  6. Received: from eitech.eitech.com by lks.lks.csi.com (5.65/6.930123)
  7.      with SMTP id AA15869; Tue, 27 Apr 93 13:03:32 -0500
  8. Received: by eitech.com (4.1/SMI-4.1)
  9.     id AA08281; Tue, 27 Apr 93 10:58:58 PDT
  10. Date: Tue, 27 Apr 93 10:58:58 PDT
  11. From: weber@eitech.com (Jay C. Weber)
  12. Message-Id: <9304271758.AA08281@eitech.com>
  13. To: dsr@hplb.hpl.hp.com
  14. Subject: Re:  Standardizing new HTML features
  15. Cc: sweber@eitech.com, www-talk@nxoc01.cern.ch
  16.  
  17. Dave,
  18.  
  19. Three cheers to you for starting to pull together HTML enhancements!
  20.  
  21. On the subject of query forms, maybe I just don't understand where
  22. Tim's old <QUERYFORM> ideas were heading, but we're working on an
  23. approach that I like better.  I hinted at it in a recent message
  24. regarding variable substitution, here's more detail.
  25.  
  26. Define new tags for acquiring information from the user about an
  27. object retrieval.  A basic set of these tags is:
  28.  
  29. 1.<ENTRYBLANK TYPE=type LENGTH=length DEFAULT=default VAR=lval>
  30.   Prompt </ENTRYBLANK>
  31.  
  32. 2.<QUESTION TYPE=type DEFAULT=default VAR=lval> Prompt </QUESTION>
  33.  
  34. 3.<CHOICE DEFAULT=default VAR=lval>
  35.   <ALTERNATIVE VAL=value1> Prompt1
  36.   ...
  37.   <ALTERNATIVE VAL=valuen> Promptn
  38.   </CHOICE>
  39.  
  40. A GUI browser, for example, would turn the first kind of tags into
  41. embedded entry widgets and do value checking based on the *type*
  42. (e.g., string, bool, int, float).  Tags of the second kind might
  43. turn into checkboxes, where the type could be 2-state or 3-state.
  44. In both cases the Prompt would be a label string.  The GUI browser
  45. could turn CHOICE constructs into radio buttons or listboxes,
  46. depending on the number of ALTERNATIVES, the homgeneity of the 
  47. Prompt lengths, etc.
  48.  
  49. A tty/emacs browser could turn these tags into screen prompts,
  50. y/n questions, menu lists, whatever.
  51.  
  52. Either way, the key is that these tags set variables, named by VAR
  53. parameters, first to the default value and then to any input by the
  54. user.  These variables can then be substituted into URLs, thereby
  55. dynamically creating URLs based on how the user fills in a form.
  56.  
  57. This scheme does require a URL variable substitution scheme like
  58. I described in a recent message.  We're working on an implementation
  59. as mods to the HTML 2.0 library.  Tim, would you be interested in
  60. these mods?
  61.  
  62. Jay Weber
  63. EIT